package com.catsic.user.service.jdbc.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.catsic.base.service.jdbc.impl.JdbcBaseServiceImpl;
import com.catsic.user.TestUser;
import com.catsic.user.dao.JdbcUserDao;
import com.catsic.user.service.JdbcUserService;

@Service("jdbcUserService")
public class JdbcUserServiceImpl extends JdbcBaseServiceImpl<TestUser, String> implements
		JdbcUserService {

	@Autowired
	private JdbcUserDao jdbcUserdao;
	
	@Override
	public TestUser get(String id) {
        return jdbcUserdao.get(id);
	}

	@Override
	public void add(TestUser user) {
		jdbcUserdao.add(user);
	}

	@Override
	public void delete(String id) {
		jdbcUserdao.delete(id);;
	}

	@Override
	public void update(TestUser user) {
		jdbcUserdao.update(user);
	}

	@Override
	public Integer getTotalCount() {
		return jdbcUserdao.getTotalCount();
	}

	@Override
	public List<TestUser> getList(int startIndex, int count) {
		return null;
	}

	@Override
	public List<TestUser> getAll() {
		List<TestUser> users = null;
		return users;
	}
}
